import { DestroySystem } from "../../../../../Core/Module/EventSystem/IDestroySystem";
import { FriendOf, ObjectSystemAttribute } from "../../../../../Decorator/Decorator";
import { SessionComponent } from "../../../../Model/Client/Demo/Session/SessionComponent";

@FriendOf(SessionComponent)
@ObjectSystemAttribute()
export class SessionComponentDestroySystem extends DestroySystem<SessionComponent> {

    Destroy(self: SessionComponent): void {
        self.Session.Dispose();
    }

}